<?php
namespace app\admin\validate;
use think\Validate;

class Business extends Validate
{
    protected $rule=[
        'name'=>'require|max:25|unique:business',

    ];
    
    protected $message=[
        'name.require'=>'申请单位必须填写',
        'name.max'=>'申请单位最多不能超过25个字符',

    
    ];
    
    protected $scene = [
        'add' => ['name'=>'require'],
        'edit' => ['name'=>'require'],
    ];
}
